<?php
/**
 * Created by PhpStorm.
 * User: a761208
 * Date: 18-2-7
 * Time: 下午7:47
 */

$this->title = '运行环境检查';
?>
<table>
    <thead>
    <tr>
        <th>目录</th>
        <th>权限</th>
    </tr>
    </thead>
    <tbody>
    <?php foreach (['runtime', 'web/assets', 'web/uploads'] as $dir) {?>
        <tr>
            <td><?php echo $dir;?></td>
            <td><?php echo is_writable(Yii::getAlias('@app/' . $dir)) ? 'Yes' : 'No';?></td>
        </tr>
    <?php }?>
    </tbody>
</table>
<table>
    <thead>
    <tr>
        <th>模块</th>
        <th>结果</th>
    </tr>
    </thead>
    <tbody>
    <?php foreach (['bcmath', 'curl', 'fileinfo', 'gd', 'mbstring', 'mcrypt', 'memcached', 'pdo', 'pdo_mysql', 'pdo_sqlite', 'soap'] as $model) {?>
        <tr>
            <td><?php echo $model;?></td>
            <td><?php echo extension_loaded($model) ? 'Yes' : 'No';?></td>
        </tr>
    <?php }?>
    </tbody>
</table>
